﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using nERP.Model.Wms;
using nERP.Model;
using nERP.Model.Bas;

namespace nERP.ViewModel.Wms.OtherOutWarehouseDetailVMs
{
    public partial class OtherOutWarehouseDetailTemplateVM : BaseTemplateVM
    {
        
        [Display(Name = "_Model._OtherOutWarehouseDetail._OtherOutWarehouse")]
        public ExcelPropety OtherOutWarehouse_Excel = ExcelPropety.CreateProperty<OtherOutWarehouseDetail>(x => x.OtherOutWarehouseId);
        [Display(Name = "_Model._OtherOutWarehouseDetail._OtherOutWarehouseDetailCode")]
        public ExcelPropety OtherOutWarehouseDetailCode_Excel = ExcelPropety.CreateProperty<OtherOutWarehouseDetail>(x => x.OtherOutWarehouseDetailCode);
        [Display(Name = "_Model._OtherOutWarehouseDetail._Warehouse")]
        public ExcelPropety Warehouse_Excel = ExcelPropety.CreateProperty<OtherOutWarehouseDetail>(x => x.WarehouseId);
        [Display(Name = "_Model._OtherOutWarehouseDetail._Goods")]
        public ExcelPropety Goods_Excel = ExcelPropety.CreateProperty<OtherOutWarehouseDetail>(x => x.GoodsId);
        [Display(Name = "_Model._OtherOutWarehouseDetail._GoodsName")]
        public ExcelPropety GoodsName_Excel = ExcelPropety.CreateProperty<OtherOutWarehouseDetail>(x => x.GoodsName);
        [Display(Name = "_Model._OtherOutWarehouseDetail._GoodsSpec")]
        public ExcelPropety GoodsSpec_Excel = ExcelPropety.CreateProperty<OtherOutWarehouseDetail>(x => x.GoodsSpec);
        [Display(Name = "_Model._OtherOutWarehouseDetail._GoodsUnit")]
        public ExcelPropety GoodsUnit_Excel = ExcelPropety.CreateProperty<OtherOutWarehouseDetail>(x => x.GoodsUnit);
        [Display(Name = "_Model._OtherOutWarehouseDetail._OtherOutNumber")]
        public ExcelPropety OtherOutNumber_Excel = ExcelPropety.CreateProperty<OtherOutWarehouseDetail>(x => x.OtherOutNumber);
        [Display(Name = "_Model._OtherOutWarehouseDetail._Remark")]
        public ExcelPropety Remark_Excel = ExcelPropety.CreateProperty<OtherOutWarehouseDetail>(x => x.Remark);
        [Display(Name = "_Model._OtherOutWarehouseDetail._Seq")]
        public ExcelPropety Seq_Excel = ExcelPropety.CreateProperty<OtherOutWarehouseDetail>(x => x.Seq);
        [Display(Name = "_Model._OtherOutWarehouseDetail._Status")]
        public ExcelPropety Status_Excel = ExcelPropety.CreateProperty<OtherOutWarehouseDetail>(x => x.Status);
        //[Display(Name = "_Model._OtherOutWarehouseDetail._CreateTime")]
        //public ExcelPropety CreateTime_Excel = ExcelPropety.CreateProperty<OtherOutWarehouseDetail>(x => x.CreateTime, true);
        //[Display(Name = "_Model._OtherOutWarehouseDetail._UpdateTime")]
        //public ExcelPropety UpdateTime_Excel = ExcelPropety.CreateProperty<OtherOutWarehouseDetail>(x => x.UpdateTime, true);
        //[Display(Name = "_Model._OtherOutWarehouseDetail._CreateBy")]
        //public ExcelPropety CreateBy_Excel = ExcelPropety.CreateProperty<OtherOutWarehouseDetail>(x => x.CreateBy);
        //[Display(Name = "_Model._OtherOutWarehouseDetail._UpdateBy")]
        //public ExcelPropety UpdateBy_Excel = ExcelPropety.CreateProperty<OtherOutWarehouseDetail>(x => x.UpdateBy);
        //[Display(Name = "_Model._OtherOutWarehouseDetail._TenantCode")]
        //public ExcelPropety TenantCode_Excel = ExcelPropety.CreateProperty<OtherOutWarehouseDetail>(x => x.TenantCode);

	    protected override void InitVM()
        {
            

        }

    }

    public class OtherOutWarehouseDetailImportVM : BaseImportVM<OtherOutWarehouseDetailTemplateVM, OtherOutWarehouseDetail>
    {
            //import

    }

}